package temp;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

import org.apache.commons.lang.StringUtils;



public class StringTest {
	
	public static void main(String[] args) {
		
//		System.out.println("2009-09".compareTo("2009-09"));
		
		String str = "       /rfdfsfd/nfdfdfd/r/nfdf /n/r fdfdsfdfdsfdfd       ";
//		str = StringUtils.deleteWhitespace(str);
		str = replaceBlank(str);
		System.out.println(str);
		
		System.out.println(",d,".split(",").length);
	}
	
	public static String replaceBlank(String string)
	{
	   Pattern p = Pattern.compile("\\s*|\t|\r|\n");
	   Matcher m = p.matcher(string);
	   return m.replaceAll(""); 
	}

}
